//
//  AboutMeView.m
//  BasketballClub
//
//  Created by 孙鸿吉 on 16/1/18.
//  Copyright © 2016年 孙鸿吉. All rights reserved.
//

#import "AboutMeView.h"

@implementation AboutMeView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self allViews];
    }
    return self;
}
- (void)allViews
{
    self.title = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH/2 - (40 * LAYOUT_SIZE), 29 * LAYOUT_SIZE_HEIGHT, 80* LAYOUT_SIZE, 26 * LAYOUT_SIZE_HEIGHT)];
    self.title.text = @"关于我们";
    self.title.textAlignment = 1;
    self.title.textColor = [UIColor yellowColor];
    self.title.font = [UIFont systemFontOfSize:17 * LAYOUT_SIZE];
    [self addSubview:self.title];
    
    //取消按钮
    self.cancleButton = [[UIButton alloc]initWithFrame:CGRectMake(10 * LAYOUT_SIZE, 29 * LAYOUT_SIZE_HEIGHT, 50 * LAYOUT_SIZE, 26 * LAYOUT_SIZE_HEIGHT)];
    [self.cancleButton setImage:[UIImage imageNamed:@"fanhui"] forState:UIControlStateNormal];
    [self addSubview:self.cancleButton];
    
    //版本
    self.textOfVersion = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100 * LAYOUT_SIZE, 25 * LAYOUT_SIZE_HEIGHT)];
    self.textOfVersion.text = @"版本:1.0";
    self.textOfVersion.center = self.center;
    self.textOfVersion.textAlignment = 1;
    self.textOfVersion.textColor = [UIColor yellowColor];
    self.textOfVersion.font = [UIFont systemFontOfSize:17 * LAYOUT_SIZE];
    [self addSubview:self.textOfVersion];
    
    //关于我们
    self.aboutMeMessage = [[UILabel alloc]initWithFrame:CGRectMake(80 * LAYOUT_SIZE , 400 * LAYOUT_SIZE_HEIGHT, 250 * LAYOUT_SIZE, 25 * LAYOUT_SIZE_HEIGHT)];
    self.aboutMeMessage.textColor = [UIColor yellowColor];
    self.aboutMeMessage.text = @"联系方式:395705277@qq.com";
    self.aboutMeMessage.font = [UIFont systemFontOfSize:17 * LAYOUT_SIZE];
    self.aboutMeMessage.textAlignment = 1;
    [self addSubview:self.aboutMeMessage];
}
@end
